package org.jeecg.modules.system.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.system.entity.*;
import org.jeecg.modules.system.mapper.ZkProduceReportMapper;
import org.jeecg.modules.system.service.IZkProduceReportService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 中科生产报表
 * @Author: jeecg-boot
 * @Date:   2024-07-26
 * @Version: V1.0
 */
@Service
@DS("multi-datasource1")
public class ZkProduceReportServiceImpl extends ServiceImpl<ZkProduceReportMapper, ZkProduceReport> implements IZkProduceReportService {

    //根据车间，车间号查询夜班，中班，白班数据
    @Override
    public List<ZkProduceReport> queryZkProduceReportList(String workshopName,String mrpDsmBeginDate,String mrpDsmEndDate) {
        return this.baseMapper.queryZkProduceReportList(workshopName,mrpDsmBeginDate,mrpDsmEndDate);
    }
    //查询生产车间下得供料机合格率
    @Override
    public List<ZkProduceReportPass> queryZkProduceReportPass(String workshopName, String mrpDsmBeginDate) {
        return this.baseMapper.queryZkProduceReportPass(workshopName,mrpDsmBeginDate);
    }
    //月度显示，每个供料机近30天合格率柱状图
    @Override
    public List<ZkProduceReportWorkshopName> queryList(String time,String workshopName) {
        return this.baseMapper.queryList(time,workshopName);
    }

    //月度显示，整个窑炉近30天合格率曲线图
    @Override
    public List<ZkProduceReportProductFloor> queryProductFloor(String time, String workshopName) {
        return this.baseMapper.queryProductFloor(time,workshopName);
    }

    //近三个班供料机合格率
    @Override
    public List<ZkProduceReportGlcname> queryGlcname(String workshopName, String mrpDsmBeginDate, String mrpDsmEndDate) {
        return this.baseMapper.queryGlcname(workshopName,mrpDsmBeginDate,mrpDsmEndDate);
    }
}
